package m2.role;

import java.util.Observable;

import m2.connector.Glue;
import m2.links.Attachment;

public class Role extends Observable{

	private String type;
	private String owner;
	private String roleValue;
	
	/**
	 * 
	 * @param roleValue
	 */
	public Role(String roleValue){
		this.roleValue = roleValue;
	}
	
	/**
	 * 
	 * @return
	 */
	public String getType() {
		return type;
	}

	/**
	 * 
	 * @param type
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	/**
	 * 
	 * @return
	 */
	public String getOwner() {
		return owner;
	}

	/**
	 * 
	 * @param owner
	 */
	public void setOwner(String owner) {
		this.owner = owner;
	}
	
	/**
	 * 
	 * @return
	 */
	public String getRoleValue() {
		return roleValue;
	}

	/**
	 * 
	 * @param roleValue
	 */
	public void setRoleValue(String roleValue) {
		this.roleValue = roleValue;
		setChanged();
		notifyObservers(this.roleValue);
	}
	
	/**
	 * 
	 * @param glue
	 */
	public void observBy(Glue glue){
		addObserver(glue);
	}
	
	/**
	 * 
	 * @param attachement
	 */
	public void observBy(Attachment attachement){
		addObserver(attachement);
	}
	
}
